from django.urls import path
from django.urls import re_path

from .views import *

urlpatterns = [
    # 与资源相关的接口
    re_path(r"add$", ResourceAdd),
    re_path(r"import$", ResourceImport),
    re_path(r"list$", ResourceList),
    re_path(r"delete$", ResourceDelete),
    re_path(r"update$", ResourceUpdate),
    # re_path(r"totals$", ResourceTotals),

    path('save', SaveView.as_view(), name='save'),
    path('search', SearchView.as_view(), name='search'),
    path('get/resource', GetResource.as_view(), name='get/resource'),
    path('count', CountView.as_view(), name='count'),
    path('select', SelectView.as_view(), name='select'),
    path('totals', TotalsView.as_view(), name='totals'),
]
